package com.yswl.yeeduo.ui.bean;

import java.util.List;

import com.yswl.yeeduo.ui.utils.JsonUtil;

public class RankingDetailBean {

	
	public RankingDetailActiveBean active;
	public List<RankingDetailListItemBean> rank;

	// public static List<RankingDetailBean> json2List(String objarray) {
	// List<RankingDetailBean> listBean ;
	// Gson gson = new Gson();
	// java.lang.reflect.Type type = new
	// com.google.gson.reflect.TypeToken<ArrayList<RankingDetailBean>>() {
	// }.getType();
	// listBean = gson.fromJson(objarray, type);
	// return listBean;
	// }
	
	public static RankingDetailBean getUser(String jsonString) {
		return (RankingDetailBean) JsonUtil.jsonToBean(jsonString, RankingDetailBean.class);
	}

	public class RankingDetailListItemBean {
		/**
		 * "rank": 1,//排名 "headIcon":
		 * "http://wx.qlogo.cn/mmopen/Q3auHgzwzM7Z2SHmUH96uYt1aGT7grKVC47yv6DChxkLnHgdQibgqiaAEEjqmzYhiaNtat1W18SGzvmsLrXXAJCxQ/0"
		 * ,//头像 "name": "包庆",//名称 "money": "3.34",//获取的钱 "addTime":
		 * 1442130080//添加记录的时间
		 */

		public String rank;
		public String headIcon;
		public String name;
		public String money;
		public String addTime;
	}
	
	public class RankingDetailActiveBean{
		public String coverImg;
		public String title;
		public String describe;
		public String readReward;
		public String url;
	}
}
